<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context=".view.Fragments.ParkingStatusFragment"
    android:background="?attr/second_background">

<androidx.constraintlayout.widget.ConstraintLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ProgressBar
        android:id="@+id/loading"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:indeterminateTint="?attr/purple"
        android:visibility="visible"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/btAdd"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:layout_marginTop="@dimen/_6sdp"
            android:layout_marginEnd="@dimen/_10sdp"
            android:background="@drawable/button_add_balance"
            android:foreground="@drawable/background_profile_menu_ripple"
            android:orientation="horizontal"
            tools:visibility="visible">

            <TextView
                android:id="@+id/tvBalance"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginVertical="@dimen/_4sdp"
                android:layout_marginStart="@dimen/_6sdp"
                android:text=""
                android:textColor="?attr/main_text_color"
                android:textSize="@dimen/_12sdp" />

            <ImageView
                android:layout_width="@dimen/_17sdp"
                android:layout_height="@dimen/_17sdp"
                android:layout_gravity="center"
                android:layout_marginHorizontal="@dimen/_4sdp"
                android:background="@drawable/icon_add_balance" />
        </LinearLayout>

        <EditText
            android:id="@+id/etSearch"
            android:layout_width="match_parent"
            android:layout_height="@dimen/_36sdp"
            android:layout_marginHorizontal="@dimen/_20sdp"
            android:layout_marginTop="@dimen/_4sdp"
            android:background="@drawable/background_edittext_search_tranz"
            android:drawableStart="@drawable/icon_search_for_news"
            android:drawablePadding="@dimen/_6sdp"
            android:fontFamily="@font/inter_medium"
            android:hint="Парковка, номер транзакции"
            android:inputType="textFilter"
            android:paddingStart="@dimen/_6sdp"
            android:textColorHint="?attr/second_text_color"
            android:textSize="@dimen/_12sdp"
            android:visibility="gone"
            tools:visibility="gone" />

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textStyle="bold"
            android:layout_marginStart="@dimen/_20sdp"
            android:textSize="@dimen/_19sdp"
            android:layout_marginTop="@dimen/_4sdp"
            android:text="@string/title_status"
            android:textColor="?attr/main_text_color"/>
        
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/_36sdp"
            android:background="@drawable/button_add_balance"
            android:layout_marginTop="@dimen/_10sdp"
            android:layout_marginHorizontal="@dimen/_20sdp"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/btAll"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center"
                android:layout_weight="1"
                android:fontFamily="@font/inter_medium"
                android:foreground="@drawable/background_profile_menu_ripple"
                android:background="@drawable/button_active_menu"
                android:layout_marginHorizontal="@dimen/_6sdp"
                android:layout_marginVertical="@dimen/_4sdp"
                android:textColor="?attr/main_text_color"
                android:text="Все"/>
            <TextView
                android:id="@+id/btActive"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center"
                android:layout_weight="1"
                android:fontFamily="@font/inter_medium"
                android:layout_marginHorizontal="@dimen/_6sdp"
                android:layout_marginVertical="@dimen/_4sdp"
                android:foreground="@drawable/background_profile_menu_ripple"
                android:textColor="?attr/main_text_color"
                android:text="Активные"/>

            <TextView
                android:id="@+id/btPast"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginHorizontal="@dimen/_6sdp"
                android:layout_marginVertical="@dimen/_4sdp"
                android:layout_weight="1"
                android:fontFamily="@font/inter_medium"
                android:gravity="center"
                android:text="Прошлые"
                android:foreground="@drawable/background_profile_menu_ripple"
                android:textColor="?attr/main_text_color" />
        </LinearLayout>


        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recyclerView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="invisible"
            android:layout_marginBottom="@dimen/_60sdp"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
            tools:listitem="@layout/viewholder_transaction_active" />

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

</FrameLayout>